import request from "@/utils/request";

export function savevisit(data) {
  return request({
    url: "sinohis/pension/checkin/visitingrecord/registerVisitingRecord",
    method: "post",
    data
  });
}
export function search(params) {
  return request({
    url: "/sinohis/pension/checkin/visitingrecord/searchVisitingRecord",
    method: "get",
    params

  });

}

export function leave(data) {
  return request({
    url: "sinohis/pension/checkin/visitingrecord/leave",
    method: "put",
    data

  });

}
export function searchelderlycondition (params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchCheckInInfoByElderly/"+params.elderlycondition ,
    method: "get",
    params

  });

}
//打印来访探视记录列表
export function visitingrecord(params) {
  return request({
    url: "/sinohis/pension/checkin/visitingrecord/print",
    method: "get",
    params
  });
}
